<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>register.jsp</title>
<script type="text/javascript" src="js/common/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="js/register.js"></script>
</head>
<body>
	<div style="text-align:center;">
	<!-- 显示文件太大或格式不正确的错误 -->
	${requestScope.msg}
		<div style="font-size:30px;font-weight:bold;">用户注册</div>	
		<form action="register.do" method="post" name="reg_form" enctype="multipart/form-data">
		<table border="1" align="center">
			<tr>
				<td>用户名:</td>
				<td>
				     <input type="text" name="userName" onblur="doCheckName_jquery();"/>
				     <span id="uname" style="color:red"></span>
				</td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><input type="password" name="userPassword" /></td>
			</tr>
			<tr>
				<td>年龄:</td>
				<td><input type="text" name="userAge"/></td>
			</tr>
			<tr>
				<td>地址:</td>
				<td><input type="text" name="userAddress"/></td>
			</tr>
			<tr>
				<td>性别:</td>
				<td><input type="radio" name="userSex" value="男" checked="checked"/>男
					<input type="radio" name="userSex" value="女"/>女
				</td>
			</tr>
			<tr>
				<td>爱好:</td>
				<td><input type="checkbox" name="userHobby" value="吃饭"/>吃饭
					<input type="checkbox" name="userHobby" value="睡觉"/>睡觉
					<input type="checkbox" name="userHobby" value="打豆豆"/>打豆豆
					<input type="checkbox" name="userHobby" value="敲代码"/>敲代码
				</td>
			</tr>
			<tr>
				<td>籍贯:</td>
				<td>
					<select name="userJiGuan">
						<option value="北京">北京</option>
						<option value="上海">上海</option>
						<option value="广州">广州</option>
						<option value="河北">河北</option>
						
					</select>
				</td>
			</tr>
			<tr>
				<td>备注:</td>
				<td>
					<textarea name="userComment" rows="3" cols="10"></textarea>
				</td>
			</tr>
			<tr>
				<td>头像:</td>
				<td>
					<input type="file" name="userHead"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="注册" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="reset" value="重置" />
				</td>
			</tr>
			
			
		</table>
		</form>
	</div>
</body>
</html>